<div class="show_detail">
    <ul>
        <li><%=image_tag(@photo.pic.url(:resized))%></li>
        <li>创意名称：<span><%=@photo.title%></span></li>
		<% if @flag.to_s == PRODUCT -%>
		<li>类别：<%=@photo.retype.name%></li>
		<% end -%>
        <li>内容介绍：<pre><%= @photo.description.or_else("您还没有介绍图片") %></pre></li>
      	<li>
      		<%=link_to "编辑", :action => :editpic, :id => @photo -%>
	  		<%=link_to "删除", :action => :deletepic, :id => @photo, :confirm => "确认删除",:method=>:delete %>
	  	</li>
    </ul>
</div>